package com.cly.entity;

import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 群组
 *
 * @author by 春风能解释
 * <p>
 * 2025/1/25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "群组实体类", description = "群组实体类")
public class Group extends BaseEntity {

    /**
     * 序列化id
     */
    @Serial
    private static final long serialVersionUID = 5502635611145160640L;
    /**
     * 头像
     */
    @Schema(description = "头像")
    private Long avatar;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 描述
     */
    @Schema(description = "描述")
    private String description;

    /**
     * 群主id
     */
    @Schema(description = "群主id")
    private Long ownerId;
}
